import 'package:flutter_ok/entity/user_info.dart';

class EntityUtil {
  static T generateObject<T>(json) {
    if (json == null) {
      return null;
    } else if (T.toString() == "UserInfo") {
      return UserInfo.fromJson(json) as T;
    }
    return json as T;
  }
}
